home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Frameworks / Extension Shell 1.3 / Extension Shell 1.3 (Source) / ExtensionShell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-06  |  1.5 KB  |  63 lines  |  [TEXT/R*ch]

  1. /*    NAME:
  2.         ExtensionShell.h
  3.  
  4.     WRITTEN BY:
  5.         Dair Grant
  6.                 
  7.     DESCRIPTION:
  8.         Header file for ExtensionShell.c
  9.  
  10.     ___________________________________________________________________________
  11. */
  12. #ifndef __EXTENSIONSHELL__
  13. #define __EXTENSIONSHELL__
  14. //=============================================================================
  15. //        Include files
  16. //-----------------------------------------------------------------------------
  17. #include <QuickDraw.h>
  18. #include <Traps.h>
  19.  
  20.  
  21.  
  22.  
  23.  
  24. //=============================================================================
  25. //        Defines
  26. //-----------------------------------------------------------------------------
  27. #define GrafSize                206                            // From IM I-209. Total QDraw storage
  28. #define ADD_GRAFSIZE            (GrafSize - 130)            // 130 bytes in shown fields
  29. #define kInitGrafTrap           _InitGraf                    // 0xA86E
  30. #define kUnimplementedTrap        _Unimplemented                // 0xA89F
  31.  
  32.  
  33.  
  34.  
  35.  
  36. //=============================================================================
  37. //        Structures
  38. //-----------------------------------------------------------------------------
  39. typedef struct    {
  40.     char            filler[ADD_GRAFSIZE];            // Internal QD storage
  41.     long            randSeed;
  42.     BitMap            screenBits;
  43.     Cursor            arrow;
  44.     Pattern            dkGray;
  45.     Pattern            ltGray;
  46.     Pattern            gray;
  47.     Pattern            black;
  48.     Pattern            white;
  49.     GrafPtr            thePort;
  50. } FakeQD;
  51.  
  52.  
  53.  
  54.  
  55.  
  56. //=============================================================================
  57. //        Function prototypes
  58. //-----------------------------------------------------------------------------
  59. TrapType    GetTrapType(int trapNum);
  60.  
  61.  
  62. #endif
  63.